/**
该文件来自CSDN一位博主。由于找不到出处了，请见谅。
*/
//ExceptionConstructor.h
#ifndef EXCEPTIONT_CONSTRUCTOR_H
#define EXCEPTIONT_CONSTRUCTOR_H

#include <stdexcept>
#include <stdio.h>


class CExceptionAlpha
{
public:
    explicit CExceptionAlpha(int age) throw(std::invalid_argument);
    ~CExceptionAlpha() throw(std::invalid_argument);

private:
    int m_Age;
};

class CExceptionBeta
{
public:
    explicit CExceptionBeta(int height) throw(std::invalid_argument);
    ~CExceptionBeta();

private:
    int m_Height;
};

class CExceptionGroup
{
public:
    explicit CExceptionGroup(int count) throw(std::invalid_argument);
    ~CExceptionGroup();

private:
    CExceptionAlpha m_Alpha;
    CExceptionBeta m_Beta;
    int m_Count;
};

#endif
